package com.kingdee.eas.mx.imp;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.eas.mx.log.ck.StorageListInfo;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.bos.util.BOSUuid;



public abstract class AbstractDataOperationToolsFacadeControllerBean extends AbstractBizControllerBean implements DataOperationToolsFacadeController
{
    protected AbstractDataOperationToolsFacadeControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("1F05C6B8");
    }

    public void deductValue(Context ctx, BOSUuid id, boolean isDeduct) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("aa549798-8b8e-4769-aa45-498308f2c063"), new Object[]{ctx, id, new Boolean(isDeduct)});
            invokeServiceBefore(svcCtx);
            _deductValue(ctx, id, isDeduct);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _deductValue(Context ctx, BOSUuid id, boolean isDeduct) throws BOSException, EASBizException
    {    	
        return;
    }

    public void createKuCun(Context ctx, StorageListInfo model, String isAdd) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("f3725fea-c61c-4222-9dfe-f1b203be06ca"), new Object[]{ctx, model, isAdd});
            invokeServiceBefore(svcCtx);
            _createKuCun(ctx, model, isAdd);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _createKuCun(Context ctx, IObjectValue model, String isAdd) throws BOSException, EASBizException
    {    	
        return;
    }

}